import request from '@/utils/request'

// 查询访客列表
export function recordListApi(query) {
    return request({
        url: '/guest/guest',
        method: 'get',
        params: query
    })
}

export function addGuestRecodeApi(form) {
    return request({
        url: '/guest/guest',
        method: 'post',
        data: form
    })
}

export function updateGuestRecodeApi(form) {
    return request({
        url: '/guest/guest',
        method: 'put',
        data: form
    })
}

export function delGuestRecordApi(val) {
    return request({
        url: '/guest/guest',
        method: 'delete',
        params: {
            "id": val
        }
    })
}